﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="BMSQ.Admin.User.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div class="newslist_title">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="borderkuang">
            <tr>
                <td bgcolor="#FFFFFF" class="newstitle">用户列表
                </td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="newstitlebody">用户列表
                </td>
            </tr>
        </table>
    </div>
     <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 80px" align="right" class="tdbg">
                         <b>关键字：</b>
                    </td>
                    <td class="tdbg">                       
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="User_ID" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="10"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis"  runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="User_ID" HeaderText="User_ID" SortExpression="User_ID" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Name" HeaderText="User_Name" SortExpression="User_Name" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Phone" HeaderText="User_Phone" SortExpression="User_Phone" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Email" HeaderText="User_Email" SortExpression="User_Email" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Pwd" HeaderText="User_Pwd" SortExpression="User_Pwd" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="Check_Code" HeaderText="Check_Code" SortExpression="Check_Code" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_TrueName" HeaderText="User_TrueName" SortExpression="User_TrueName" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Sex" HeaderText="User_Sex" SortExpression="User_Sex" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Address" HeaderText="User_Address" SortExpression="User_Address" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Image" HeaderText="User_Image" SortExpression="User_Image" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="User_Money" HeaderText="User_Money" SortExpression="User_Money" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="Created_Date" HeaderText="Created_Date" SortExpression="Created_Date" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="Login_Date" HeaderText="Login_Date" SortExpression="Login_Date" ItemStyle-HorizontalAlign="Center"  /> 
                            
                            <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="User_ID" DataNavigateUrlFormatString="Show.aspx?id={0}"
                                Text="详细"  />
                            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="User_ID" DataNavigateUrlFormatString="Modify.aspx?id={0}"
                                Text="编辑"  />
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除"   Visible="false"  >
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                         Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"/>                       
                    </td>
                </tr>
            </table>
</asp:Content>
